From 7e00e6ac42e597cbe5911229dada7be844faa1e5 Mon Sep 17 00:00:00 2001 From: robertl Date: Thu, 19 May 2005 01:26:22 +0000 Subject: [PATCH] Start splitting smartname flag into finer precision. --- gpsbabel/defs.h | 1 + gpsbabel/main.c | 16 ++++++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/gpsbabel/defs.h b/gpsbabel/defs.h index a5bef70a7..4ac800dcb 100644 --- a/gpsbabel/defs.h +++ b/gpsbabel/defs.h @@ -87,6 +87,7 @@ typedef struct { unsigned int masked_objective; int verbose_status; /* set by GUI wrappers for status */ int no_smart_icons; + int no_smart_names; } global_options; extern global_options global_opts; diff --git a/gpsbabel/main.c b/gpsbabel/main.c index 3f17ab95c..2b1afdfe4 100644 --- a/gpsbabel/main.c +++ b/gpsbabel/main.c @@ -1,5 +1,5 @@ /* - Copyright (C) 2002 Robert Lipe, robertlipe@usa.net + Copyright (C) 2002-2005 Robert Lipe, robertlipe@usa.net This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -203,7 +203,19 @@ main(int argc, char *argv[]) global_opts.masked_objective |= RTEDATAMASK; break; case 'N': - global_opts.no_smart_icons = 1; + switch(argv[argn][2]) { + case 'i': + global_opts.no_smart_icons = 1; + break; + case 'n': + global_opts.no_smart_names = 1; + break; + default: + global_opts.no_smart_names = 1; + global_opts.no_smart_icons = 1; + break; + } + break; case 'x': optarg = argv[argn][2] -- 2.30.2